<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
	<h1>Welcome to Find Your Phone Website</h1>
	<c:if test="${empty sessionScope.user }">
		<a href="login.html">Login</a>
	</c:if>
	<c:if test="${!empty sessionScope.user }">
			<p> Hello, ${sessionScope.user.userName } <a href="logout.html" >Logout</a></p>
			<a href="view-map.html">View map</a>
	</c:if>
</body>
</html>
